﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FileSystem
{
    public class FileFinder
    {
        public static void WalkDirectoryTree(System.IO.DirectoryInfo root)
        {
            System.IO.DirectoryInfo[] directoryInfo
                = root.GetDirectories("*.*", System.IO.SearchOption.AllDirectories);

            foreach (System.IO.DirectoryInfo dInfo in directoryInfo)
            {
                NormalFileWriter.WriteTextToFile(dInfo.FullName);
            }
        }

        //public static bool FindFile(System.IO.DirectoryInfo root, string fileName
        //    , out System.IO.DirectoryInfo outputFilePath)
        //{

        //    //return false;
        //}
    }
}
